.tar.xz2. Installation of Libtool and Gtk-doc two packagesLibtool successfully passed.[Email protected]:~/wyb/gst-rtsp-server/libtool-2.4$./configure[Email protected]:~/wyb/gst-rtsp-server/libtool-2.4$ make[Email protected]:~/wyb/gst-rtsp-server/libtool-2.4$ sudo make install[Email protected]:~/wyb/gst-rtsp-server/libt
added to the required segment.Add a new method. If the message recipient does not understand the request and returns the 501 error code (not implemented yet), the sender should not try this method again. You can use the Options method to query methods supported by the server. The server uses public response headers to list supported methods.Define the new version protocol and allow changes to all parts. (Except for the Protocol version number)6.3.1.4 Operation ModeEach demo and media stream can
media v2005.11.10)Server Response Information includes the following methods:RTSP/1.0 200 OKServer: userver 0.9.7 _ RC1CSeq: 1 // The CSeq value of each Response Message corresponds to the CSeq of the Request MessagePublic: Options, describe, setup, teardown, play, pause, scale,Get_parameter // available methods provided by the server2. DescribeC initiates a DESCRIBE request to S to obtain the Session Description (SDP ):Describe rtsp: // 192.168.20.1
packet is usually the option request message USER-AGENT:VLC Media Player (LIVE555 streaming media v2005.11.10) The response information for the server includes some of the methods provided, such as: rtsp/ 1.0 OK server:userver 0.9.7_rc1 cseq:1 //CSEQ value of each response message and request for a message that corresponds CSeq, DES Cribe, SETUP, TEARDOWN, PLAY, PAUSE, scale, Get_parameter//server available methods 2.DESCRIBE C initiates a DESCRI
used to deliver the segmented small media file and its index file to the client player via the HTTP protocol, which can be either a normal Web server or a Web caching system. There is little need to make any special configuration of the Web server, and to add additional custom modules. The recommended configuration is limited to the MIME type Association of the. m3u8 file and the. ts file, as shown in the table.
Because index files need to be updated and downloaded frequently, it is necessary
option request message User-Agent: VLC Media Player (live555 streaming media v2005.11.10). The server response information includes the provided methods, such as RTSP/1.0 200 okserver: userver 0.9.7 _ rc1cseq: 1 // The CSeq value of each Response Message corresponds to public: Options, describe, setup, teardown, play, pause, scale, get_parameter // available method provided by the server 2. describec initiates a DESCRIBE request to S. Description (SD
. The default port for the RTSP protocol is 554, and the default hosting protocol is TCP.
characteristics of the 2.RTSP: (1) Flow control separation: From the control logic, RTSP and FTP similar, control flow and data flow is separate.(2) Extensibility: Because the RTSP protocol is a text-based protocol, it has strong
descriptions:$ OK//client request succeededBad Request//client requests have syntax errors and cannot be understood by the server401 Unauthorized//request unauthorized, this status code must be used with the Www-authenticate header field403 Forbidden//server receives request, but refuses to provide service404 Not Found//request resource not present, eg: Wrong URL enteredInternal Server error//server unexpected errors503 Server Unavailable//server is
-AGENT:VLC Media Player (LIVE555 streaming media v2007.02.20) 2) M-Crtsp/1.0 OKCseq:2date:wed, Feb 07:13:25 GMTcontent-base:rtsp://192.168.1.109/1.mpg/Content-type:application/sdpcontent-length:447V=0o =-2284269756 1 in IP4 192.168.1.109S=mpeg-1 or 2 program Stream, streamed by the LIVE555 Media ServerI=1.mpgT=0 0a=tool:live555 Streaming Media v2008.02.08A=type:broadcasta=control:*a=range:npt=0-66.181A=x-qt-text-nam:mpeg-1 or program Stream, streamed by the LIVE555 Media ServerA=x-qt-text-inf:1.
20154 RTP/AVP 0 \ nC = in ip4 224.2.213.113/127 \ nA = ptime: 40 \ nA = control: trackID = 1 \ nM = video 51482 RTP/AVP 31 \ nC = in ip4 224.2.172.238/127 \ nA = control: trackID = 2 \ n
In the response, we focus on the SDP field. in SDP, we can see that streaming media contains two resources (m rows): audio and video. Row A is the attribute description of M (media. in line m, the number in the middle is the port recommended by the server client. If the server does not want to do so, you can se
// The following is the RTSP server.1 # include
The above is RTSP server.
Next, we will create RTSP forwarding server B and forward the RTSP stream of server.
1 # include
The code can be obtained in the directory of the gstreamer GST-RTSP-Server Source code examples, but
Hostzhu comment: mplayer's support for streaming media allows you to use Linux to view live webcast. The promotion of multimedia applications in Linux is not measurable.RTSP/RTP streaming support for mplayerThe Open Source "mplayer" Media Player can now receive and play standards-compLiant RTP audio/video streams, using the "live555 Streaming Media" source codeLibraries.* For example, mplayer can be used to view the mpeg/RTP streams sent by thE "testmp3streamer", "testmpegvideostreamer" or "test
socket is placed in freadset, which is used in the select mechanism below. Map the second parameter to Handler-> handlerproc. 2. Prepare for connection execution Code : Env-> taskscheduler (). doeventloop (); The env is the same as the Env in 1. Call: basictaskscheduler0: doeventloop-> basictaskscheduler0: doeventloop. Execute select in the infinite loop of doeventloop to wait for the client to connect. Run the code: int selectresult = select (fmaxnumsockets, readset, null, null, TV _timetode
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.